package com.zzy.edu.service;

import com.zzy.edu.entity.EduChapter;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zzy.edu.entity.vo.chapter.ChapterVo;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author KAZU
 * @since 2023-01-13
 */
@SuppressWarnings("all")
public interface EduChapterService extends IService<EduChapter> {
	
	List<ChapterVo> getChapterVideoByCourseId(String courseId);
	
	/**
	 * 删除章节
	 *
	 * @return
	 */
	Boolean deleteChapter(String chapterId);
	
	/**
	 * 根据课程id删除章节
	 * */
	void removeChapterByCourseId(String courseId);
}
